package com.codedancer.campus.client.api.commodity.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

@Data
@ApiModel("商品添加或修改Ro")
public class CommodityAddOrUpdateRo {

    @ApiModelProperty("标题")
    @Size(min = 2, max = 64, message = "标题在2-64为之间")
    private String title;

    @ApiModelProperty("描述")
    @NotEmpty(message = "描述为空")
    private String description;

    @ApiModelProperty("原价")
    @NotNull(message = "原价为空")
    private Integer originalPrice;

    @ApiModelProperty("现价")
    @NotNull(message = "现价为空")
    private Integer currentPrice;

    @ApiModelProperty("分类uuid")
    @NotEmpty(message = "分类为空")
    private String categoryUuid;

    @ApiModelProperty("商品图片")
    @NotNull(message = "至少上传一张图片")
    private List<String> imageUrls;

    @ApiModelProperty("是否同步到自由广场")
    @NotNull(message = "请选择是否同步到自由广场")
    private Boolean isSyncLibertySquare;

    @ApiModelProperty("联系手机号")
    @NotEmpty(message = "请输入联系手机号")
    private String contactPhone;
}
